//
//  UIAlertController+Category.h
//  nvshengpai_2
//
//  Created by lushouxiang on 15/12/17.
//  Copyright © 2015年 nvshengpai. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^block)(UIAlertAction * action);


@interface UIAlertController (Category)

/**
 *  快速创建AlertSheet titles 与 blocks 里面的元素个数一定要一样
 *
 *  @param title
 *  @param message
 *  @param actions titles 与 blocks 里面的元素个数一定要一样
 *  @param titles  titles 与 blocks 里面的元素个数一定要一样
 *
 *  @return titles 与 blocks 里面的元素个数一定要一样
 */
+ (instancetype)alertSheet:(NSString *)title mes:(NSString *)message actionTitles:(NSArray *)titles actionBlocks:(NSArray *)blocks;
+ (instancetype)alertSheet:(NSString *)title mes:(NSString *)message actions:(NSArray *)actions;
- (void)showAlert;



// 只有message
+ (void)showAlertMessage:(NSString *)msg;
+ (void)showSheetMessage:(NSString *)msg;
+ (void)showAlertMessage:(NSString *)msg AutoMiss:(BOOL)miss;
+ (void)showSheetMessage:(NSString *)msg AutoMiss:(BOOL)miss;


+ (void)showAlertViewWithTitle:(NSString *)title message:(NSString *)message cancle:(NSString *)CancleTitle CancleAction:(block)cancleBlock sureTitle:(NSString *)sureTitle sureAction:(block)sureBlock;
+ (void)showAlertViewWithTitle:(NSString *)title message:(NSString *)message cancle:(NSString *)CancleTitle action:(block)cancleBlock;
+ (void)showAlertViewWithTitle:(NSString *)title message:(NSString *)message cancle:(NSString *)CancleTitle sureTitle:(NSString *)sureTitle sureAction:(block)sureBlock;


+ (void)showSheetViewWithTitle:(NSString *)title message:(NSString *)message cancle:(NSString *)CancleTitle CancleAction:(block)cancleBlock sureTitle:(NSString *)sureTitle sureAction:(block)sureBlock;





+ (void)alertShowWithTitle:(NSString *)title message:(NSString *)message preferredStyle:(UIAlertControllerStyle)preferredStyle isCancle:(NSString *)CancleTitle sureTitle:(NSString *)sureTitle suerAction:(block)suerBlock otherTitles:(NSArray *)otherTitles otherActions:(block)otherBlock,...NS_REQUIRES_NIL_TERMINATION;

/**
 *  多按钮 上滑框
 */
+ (void)showSheetViewWithTitle:(NSString *)title message:(NSString *)message isCancle:(NSString *)CancleTitle sureTitle:(NSString *)sureTitle suerAction:(block)suerBlock otherTitles:(NSArray *)otherTitles otherActions:(block)otherBlock,...NS_REQUIRES_NIL_TERMINATION ;

/**
 *  多按钮 对话框
 */
+ (void)showAlertViewWithTitle:(NSString *)title message:(NSString *)message isCancle:(NSString *)CancleTitle sureTitle:(NSString *)sureTitle suerAction:(block)suerBlock otherTitles:(NSArray *)otherTitles otherActions:(block)otherBlock,...NS_REQUIRES_NIL_TERMINATION ;







@end
